/* Modern Authentication Design Styles - Updated with new color system */
:root {
  /* Legacy variables for compatibility - will be removed in future */
  --bg-body: var(--color-bg-secondary);
  --text-color: var(--color-text-primary);
  --input-bg: var(--color-input-bg);
  --input-border: var(--color-input-border);
  --input-text: var(--color-input-text);
  --btn-text: var(--color-btn-primary-text);
  --link-color: var(--color-text-link);
  --link-hover: var(--color-text-link-hover);
}

*, ::after, ::before {
    box-sizing: border-box;
}

.auth-body {
    background: var(--gradient-cool);
    color: var(--color-text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
}

.auth-header {
    text-align: center;
    padding: 32px 0 24px 0;
    margin-bottom: 32px;
}

.auth-logo {
    display: inline-block;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
}

.auth-form .auth-logo {
    margin-bottom: 24px;
    padding-top: 8px;
}

.auth-logo img {
    width: 80px;
    height: auto;
    max-width: 100%;
    transition: transform 0.2s ease;
}

.auth-logo img:hover {
    transform: scale(1.05);
}

/* Logo text removed - only showing logo image now */
.auth-logo-text {
    display: none;
}

/* Tagline removed - only showing logo now */
.auth-tagline {
    display: none;
}

/* ===== RESPONSIVE LOGO SIZING ===== */

/* Desktop and large tablets */
@media (min-width: 768px) {
    .auth-logo img {
        width: 80px;
    }
    
    .auth-header {
        padding: 32px 0 24px 0;
        margin-bottom: 32px;
    }
}

/* Small tablets */
@media (max-width: 767px) and (min-width: 481px) {
    .auth-logo img {
        width: 70px;
    }
    
    .auth-header {
        padding: 28px 0 20px 0;
        margin-bottom: 28px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .auth-logo img {
        width: 60px;
    }
    
    .auth-header {
        padding: 24px 0 16px 0;
        margin-bottom: 24px;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .auth-logo img {
        width: 52px;
    }
    
    .auth-header {
        padding: 20px 0 16px 0;
        margin-bottom: 20px;
    }
    
    .auth-form {
        width: 95%;
        max-width: 300px;
        padding: 16px 12px 20px;
    }
}

.auth-form {
    width: 350px;
    padding: 20px 15px 24px;
    margin: 0 auto;
    background-color: var(--color-surface);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-2xl);
    border: var(--border-width-thin) solid rgba(255, 255, 255, 0.2);
}

.auth-form h1, 
.auth-form h2 {
    font-size: 26px;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    color: var(--color-primary);
}

.auth-form .control {
    margin: 0 0 24px;
}

.auth-form .control input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    padding: 14px 16px;
    border: var(--border-width-thin) solid var(--color-input-border);
    background: var(--color-input-bg);
    color: var(--color-input-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: 0.02em;
    font-size: 16px;
    box-sizing: border-box;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-normal);
}

.auth-form .control input:not([type="checkbox"]):not([type="radio"]):hover,
.auth-form .control input:not([type="checkbox"]):not([type="radio"]):focus {
    outline: none;
    border-color: var(--color-input-border-focus);
    box-shadow: 0 0 0 2px rgba(231, 91, 48, 0.2);
}

/* Modern checkboxes (Terms & Privacy) */
.auth-form .form-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.auth-form .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    cursor: pointer;
    accent-color: var(--color-primary);
    transition: box-shadow 0.15s ease;
}

.auth-form .form-check-input:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(231, 91, 48, 0.25);
}

.auth-form .form-check-label {
    cursor: pointer;
}

.auth-form .btn {
    width: 100%;
    letter-spacing: 0.05em;
    font-weight: bold;
    font-size: 16px;
    padding: 14px 16px;
    min-height: 48px;
    /* Other styles handled by modern-buttons.css */
}

/* Auth button hover styles handled by modern-buttons.css */

/* Auth button disabled styles handled by modern-buttons.css */

.block-cube {
    position: relative;
}

.block-cube .bg-top {
    position: absolute;
    height: 10px;
    background: var(--color-primary);
    bottom: 100%;
    left: 5px;
    right: -5px;
    transform: skew(-45deg, 0);
    margin: 0;
    display: none;
}

.block-cube .bg-top .bg-inner {
    bottom: 0;
}

.block-cube .bg {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: var(--color-primary);
    display: none;
}

.block-cube .bg-right {
    position: absolute;
    background: var(--color-primary);
    top: -5px;
    z-index: 0;
    bottom: 5px;
    width: 10px;
    left: 100%;
    transform: skew(0, -45deg);
    display: none;
}

.block-cube .bg-right .bg-inner {
    left: 0;
}

.block-cube .bg .bg-inner {
    transition: all 0.2s ease-in-out;
}

.block-cube .bg-inner {
    background: #fff;
    position: absolute;
    left: 2px;
    top: 2px;
    right: 2px;
    bottom: 2px;
}

.block-cube .text {
    position: relative;
    z-index: 2;
}

.block-cube.block-input input {
    position: relative;
    z-index: 2;
}

.block-cube.block-input input:focus ~ .bg-right .bg-inner,
.block-cube.block-input input:focus ~ .bg-top .bg-inner,
.block-cube.block-input input:focus ~ .bg .bg-inner {
    top: 100%;
    background: rgba(255, 255, 255, 0.5);
}

.auth-form .help-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    margin-bottom: 15px;
}

.auth-form .form-link {
    display: block;
    text-align: center;
    margin-top: 24px;
    color: var(--link-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.auth-form .form-link:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Floating alert container */
.auth-alert-container {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.auth-alert-container > * {
    pointer-events: auto;
    max-width: 90%;
    width: 500px;
}

/* ------------------------------------------------------------------
   Accessible alert colour palette (high-contrast & colour-blind-friendly)
   ------------------------------------------------------------------ */
.auth-form .form-error,
.auth-alert {
    /* Generic (danger) style */
    background-color: var(--color-error-light);
    border: 1px solid var(--color-error-light);
    border-left: 6px solid var(--color-error);
    color: var(--color-error-dark);
}

.auth-alert.auth-alert-success {
    background-color: var(--color-success-light);
    border: 1px solid var(--color-success-light);
    border-left: 6px solid var(--color-success);
    color: var(--color-success-dark);
}

.auth-alert.auth-alert-warning {
    background-color: var(--color-warning-light);
    border: 1px solid var(--color-warning-light);
    border-left: 6px solid var(--color-warning);
    color: var(--color-warning-dark);
}

.auth-alert.auth-alert-info {
    background-color: var(--color-info-light);
    border: 1px solid var(--color-info-light);
    border-left: 6px solid var(--color-info);
    color: var(--color-info-dark);
}

@keyframes errorFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Validation Styles */
.auth-form .password-requirements {
    color: rgba(33, 37, 41, 0.9); /* Dark text for readability */
    font-size: 13px;
    margin-top: 8px;
    margin-bottom: 24px; /* Increased space before next input */
    text-align: left;
    padding: 10px;
    background-color: rgba(0, 121, 107, 0.05); /* Light brand color background */
    border-radius: 4px;
    border: 1px solid rgba(0, 121, 107, 0.2);
}

.auth-form .password-requirements ul {
    padding-left: 20px;
    margin: 8px 0;
}

.auth-form .password-requirements li {
    margin-bottom: 5px;
}

/* Two-column layout for larger screens */
@media (min-width: 768px) {
    .auth-form.register-form {
        width: 500px;
    }

    .auth-form .name-fields {
        display: flex;
        gap: 15px;
    }

    .auth-form .name-fields .control {
        flex: 1;
    }
}

/* Verification code input styles */
#verification-code {
    font-size: 22px !important;
    letter-spacing: 4px !important;
    text-align: center !important;
    padding: 14px 16px !important;
} 

.auth-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}

.auth-links a {
    margin: 5px 0;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.modal-dialog {
    position: relative;
    width: 90%;
    max-width: 500px;
    margin: 10% auto;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.modal-title {
    color: #333333;
    margin: 0;
    font-size: 18px;
}

.close {
    color: #6c757d;
    font-size: 24px;
    font-weight: bold;
    border: none;
    background: none;
    cursor: pointer;
}

.close:hover {
    color: #343a40;
}

.modal-body {
    padding: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #495057;
}

.form-control {
    width: 100%;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    color: #212529;
}

.form-control:focus {
    outline: none;
    border-color: #00796B;
    box-shadow: 0 0 0 2px rgba(0, 121, 107, 0.3);
}

.btn-primary {
    background-color: #00796B;
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #00897B;
}

.btn-block {
    width: 100%;
    display: block;
} 
