* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #04212C 0%, #054455 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 30px, #06AAC5 30px, #06AAC5 31px);
}

.floating-emoji {
    position: absolute;
    font-size: 80px;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
}

.emoji-1 {
    top: 10%;
    right: 15%;
    animation-delay: 0s;
}

.emoji-2 {
    bottom: 15%;
    left: 10%;
    font-size: 60px;
    animation-delay: 2s;
}

.emoji-3 {
    top: 60%;
    right: 8%;
    font-size: 50px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.auth-container {
    max-width: 520px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: white;
    border-radius: 0 16px 16px 0;
    padding: 50px 45px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border-left: 8px solid #06AAC5;
    position: relative;
    overflow: hidden;
}

.spiral-holes {
    position: absolute;
    left: -4px;
    top: 60px;
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.spiral-hole {
    width: 22px;
    height: 22px;
    background: #06AAC5;
    border-radius: 50%;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.4);
}

.notebook-lines {
    position: absolute;
    top: 0;
    left: 60px;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 33px, rgba(6,170,197,0.05) 33px, rgba(6,170,197,0.05) 34px);
    border-radius: 0 16px 16px 0;
}

.auth-content {
    position: relative;
    z-index: 1;
}

.logo-section {
    text-align: center;
    margin-bottom: 35px;
}

.logo-img {
    max-height: 45px;
    margin-bottom: 15px;
}

.logo-fallback {
    display: inline-block;
    background: linear-gradient(135deg, #06AAC5 0%, #054455 100%);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(6,170,197,0.3);
    margin-bottom: 15px;
}

h1 {
    font-size: 36px;
    font-weight: 900;
    color: #04212C;
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
}

.subtitle {
    color: #054455;
    font-size: 16px;
    margin-bottom: 30px;
}

.form-label {
    display: block;
    color: #04212C;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(6,170,197,0.2);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Georgia', serif;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.form-control:focus {
    outline: none;
    border-color: #06AAC5;
    box-shadow: 0 0 0 4px rgba(6,170,197,0.1);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #06AAC5 0%, #054455 100%);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(6,170,197,0.3);
    font-family: 'Courier New', monospace;
    margin-bottom: 25px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #054455 0%, #06AAC5 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(6,170,197,0.5);
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 2px;
    background: linear-gradient(to right, rgba(6,170,197,0.1), rgba(6,170,197,0.3));
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

.auth-link {
    text-align: center;
    color: #054455;
    font-size: 14px;
}

.auth-link a {
    color: #06AAC5;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.auth-link a:hover {
    color: #054455;
    text-decoration: underline;
}

.back-home {
    text-align: center;
    margin-top: 25px;
}

.back-home a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-home a:hover {
    color: #06AAC5;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: rgba(40,167,69,0.1);
    border: 2px solid rgba(40,167,69,0.3);
    color: #155724;
}

.alert-danger {
    background: rgba(220,53,69,0.1);
    border: 2px solid rgba(220,53,69,0.3);
    color: #721c24;
}

.alert-info {
    background: rgba(6,170,197,0.1);
    border: 2px solid rgba(6,170,197,0.3);
    color: #054455;
}

.password-toggle {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 14px;
    cursor: pointer;
    color: #999;
    font-size: 20px;
    user-select: none;
}

.toggle-password:hover {
    color: #06AAC5;
}

.social-auth {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border: 2px solid rgba(6,170,197,0.2);
    border-radius: 8px;
    background: white;
    color: #054455;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: 'Courier New', monospace;
}

.btn-social:hover {
    border-color: #06AAC5;
    background: rgba(6,170,197,0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6,170,197,0.2);
}

.btn-social svg,
.btn-social img {
    width: 20px;
    height: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row > div {
    flex: 1;
}

.form-check-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid #054455;
    border-radius: 4px;
    cursor: pointer;
    accent-color: #06AAC5;
}

.form-check-label {
    font-size: 14px;
    color: #054455;
    cursor: pointer;
    user-select: none;
}

.forgot-link {
    font-size: 14px;
    color: #06AAC5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: #054455;
    text-decoration: underline;
}

.verification-info {
    margin: 30px 0;
    padding: 25px;
    background: rgba(6,170,197,0.05);
    border: 2px dashed #06AAC5;
    border-radius: 12px;
    text-align: center;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    body {
        padding: 20px 10px;
    }

    .floating-emoji {
        font-size: 50px;
    }

    .emoji-1 {
        top: 5%;
        right: 5%;
    }

    .emoji-2 {
        bottom: 5%;
        left: 5%;
        font-size: 40px;
    }

    .emoji-3 {
        display: none;
    }

    .auth-container {
        max-width: 100%;
    }

    .auth-card {
        padding: 30px 20px;
        border-radius: 12px;
        border-left-width: 5px;
    }

    .spiral-holes {
        left: -2.5px;
        top: 40px;
        gap: 35px;
    }

    .spiral-hole {
        width: 16px;
        height: 16px;
    }

    .notebook-lines {
        left: 45px;
    }

    .auth-content {
        padding-left: 30px;
    }

    .logo-section {
        margin-bottom: 25px;
    }

    .logo-img {
        max-height: 35px !important;
    }

    .logo-fallback {
        font-size: 18px !important;
    }

    h1 {
        font-size: 24px !important;
        margin-bottom: 10px;
    }

    .subtitle {
        font-size: 14px !important;
        margin-bottom: 20px;
    }

    .alert {
        padding: 10px 12px;
        font-size: 13px;
        margin-bottom: 15px;
    }

    .social-auth {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .btn-social {
        width: 100%;
        padding: 12px;
        font-size: 13px;
        gap: 8px;
    }

    .divider {
        margin: 20px 0;
        font-size: 12px;
    }

    .form-label {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .form-control {
        padding: 12px 14px;
        font-size: 14px;
        margin-bottom: 15px;
    }

    .password-toggle .form-control {
        padding-right: 45px;
    }

    .toggle-password {
        right: 12px;
        top: 12px;
        font-size: 18px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .btn-primary {
        padding: 14px;
        font-size: 14px;
        margin-bottom: 20px;
    }

    .form-check-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .auth-link {
        font-size: 13px;
        margin-top: 15px;
    }

    .back-home {
        margin-top: 20px;
    }

    .back-home a {
        font-size: 13px;
    }

    .verification-info {
        padding: 20px 15px;
        margin: 20px 0;
    }

    .verification-info svg {
        width: 48px !important;
        height: 48px !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    body {
        padding: 30px 15px;
    }

    .floating-emoji {
        font-size: 60px;
    }

    .auth-card {
        padding: 35px 30px;
    }

    .spiral-holes {
        gap: 40px;
    }

    .spiral-hole {
        width: 18px;
        height: 18px;
    }

    .logo-img {
        max-height: 40px !important;
    }

    h1 {
        font-size: 26px !important;
    }

    .subtitle {
        font-size: 15px !important;
    }

    .social-auth {
        gap: 10px;
    }

    .btn-social {
        font-size: 13px;
        padding: 13px;
    }

    .form-control {
        padding: 13px 15px;
    }

    .btn-primary {
        padding: 15px;
        font-size: 15px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    body {
        padding: 35px 20px;
    }

    .floating-emoji {
        font-size: 70px;
    }

    .auth-container {
        max-width: 480px;
    }

    .auth-card {
        padding: 40px 35px;
    }

    .spiral-hole {
        width: 20px;
        height: 20px;
    }

    .logo-img {
        max-height: 42px !important;
    }

    h1 {
        font-size: 28px !important;
    }

    .social-auth {
        gap: 12px;
    }

    .form-row {
        gap: 12px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .auth-container {
        max-width: 500px;
    }

    .auth-card {
        padding: 45px 40px;
    }

    .floating-emoji {
        font-size: 75px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .auth-container {
        max-width: 520px;
    }

    .auth-card {
        padding: 50px 45px;
    }

    .floating-emoji {
        font-size: 80px;
    }

    .emoji-3 {
        font-size: 50px;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .auth-container {
        max-width: 560px;
    }

    .auth-card {
        padding: 55px 50px;
    }

    h1 {
        font-size: 32px !important;
    }

    .subtitle {
        font-size: 17px !important;
    }
}

/* Landscape orientation for small devices */
@media (max-height: 600px) and (orientation: landscape) {
    body {
        padding: 15px 10px;
    }

    .floating-emoji {
        display: none;
    }

    .auth-card {
        padding: 25px 30px;
    }

    .logo-section {
        margin-bottom: 15px;
    }

    h1 {
        font-size: 22px !important;
        margin-bottom: 8px;
    }

    .subtitle {
        font-size: 13px !important;
        margin-bottom: 15px;
    }

    .social-auth {
        margin-bottom: 15px;
    }

    .divider {
        margin: 15px 0;
    }

    .form-control {
        margin-bottom: 12px;
        padding: 10px 12px;
    }

    .btn-primary {
        padding: 12px;
        margin-bottom: 15px;
    }

    .back-home {
        margin-top: 15px;
    }

    .spiral-holes {
        display: none;
    }

    .auth-content {
        padding-left: 0;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .spiral-hole {
        box-shadow: inset 0 2px 5px rgba(0,0,0,0.35);
    }

    .auth-card {
        box-shadow: 0 25px 70px rgba(0,0,0,0.35);
    }
}

/* Dark mode support (if browser/OS prefers dark mode) */
@media (prefers-color-scheme: dark) {
    /* Auth pages maintain their design regardless of system preference */
    /* But we can add subtle adjustments if needed */
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-emoji {
        animation: none;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .floating-emoji,
    .back-home,
    .social-auth,
    .btn-primary {
        display: none !important;
    }

    .auth-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

