@font-face {
    font-family: 'tamelhant01';
    src: url('../fonts/AutumnFlowers-9YVZK.otf') format('OpenType');
}

@font-face {
    font-family: 'tamelhant02';
    src: url('../fonts/NOVARIA.ttf') format('OpenType');
}

html {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'tamelhant02', serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: antiquewhite; 
    color: black;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.auth-container {
    background-color: white;
    border-radius: 20px;
    padding: clamp(20px, 5vw, 40px);
    margin: clamp(20px, 5vh, 50px) auto;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 20px #5a3921;
    box-sizing: border-box;
}

.auth-title {
    color: black;
    text-align: center;
    margin-bottom: 30px;
    font-size: clamp(1.3em, 4vw, 1.8em);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

.auth-description {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    /* font-size: clamp(0.9em, 2vw, 1em); */
}

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

label {
    display: block;
    margin-bottom: 8px;
    /* font-weight: bold; */
}

.required {
    color: red;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: clamp(10px, 2vw, 15px);
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: clamp(14px, 2vw, 16px);
    box-sizing: border-box;
}

.format-info {
    margin-top: 8px;
    font-size: 0.9em;
}

.info-required {
    color: red;
}

.expected-format {
    color: #666;
}

.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.continue-btn, .create-account-btn {
    background-color: #000000;
    color: #FFFFFF;
    border: none;
    font-weight: bolder;
    border-radius: 20px;
    padding: clamp(12px, 3vw, 15px);
    width: 100%;
    font-size: clamp(12px, 2vw, 14px);
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.continue-btn:active, 
.create-account-btn:active {
    transform: scale(0.98);
}

.continue-btn:hover,
.create-account-btn:hover {
    background-color: #333;
}

.nocturne-footer {
    background-color: #5a3921;
    width: 100%;
    color: #FFFFFF;
    border-radius: 15px 15px 0 0;
    font-family: Garamond, serif;
    padding: clamp(20px, 5vw, 40px) clamp(10px, 3vw, 20px) clamp(15px, 4vw, 30px);
    margin-top: auto;
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 30px;
    border-bottom: 1px solid #D2B48C;
}

.footer-section1, .footer-section2 {
    width: 48%;
    font-family: 'tamelhant02', serif;
}

.footer-section1 h2, .footer-section2 h2 {
    font-size: clamp(1.1em, 3vw, 1.2em);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 400;
}

.footer-section1 p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: clamp(0.85em, 2vw, 0.95em);
}

.tel {
    font-family: Verdana, Tahoma, sans-serif;
    color: bisque;
}

.email-link {
    color: #D2B48C;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.email-link:hover {
    text-decoration: underline;
    color: #FFE4C4;
}

.newsletter-btn {
    background-color: transparent;
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
    padding: clamp(10px, 2vw, 12px) clamp(20px, 4vw, 25px);
    font-size: clamp(0.85em, 2vw, 0.9em);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
    border-radius: 20px;
}

.newsletter-btn:hover {
    background-color: black;
    color: white;
    transform: translateY(-2px);
}

.newsletter-btn:active {
    transform: translateY(0);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    font-size: clamp(0.75em, 2vw, 0.8em);
    color: #D2B48C;
}

/* Responsive styles */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        padding: 0 15px;
    }

    .footer-section1, .footer-section2 {
        width: 100%;
        margin-bottom: 30px;
    }

    .auth-container {
        width: 95%;
        margin: 20px auto;
    }

    .auth-title {
        font-size: 1.5em;
    }

    .auth-description {
        font-size: 0.9em;
    }

    .buttons-container {
        flex-direction: column;
        gap: 15px;
    }

    .continue-btn, .create-account-btn {
        width: 100%;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .auth-container {
        width: 92%;
        margin: 15px auto;
        padding: 20px 15px;
    }

    .auth-title {
        font-size: 1.3em;
    }

    input[type="email"],
    input[type="password"] {
        padding: 10px;
        font-size: 14px;
    }

    .footer-section1 h2, 
    .footer-section2 h2 {
        font-size: 1.1em;
        margin-bottom: 15px;
    }

    .footer-section1 p {
        font-size: 0.85em;
    }

    .newsletter-btn {
        width: 100%;
        padding: 12px;
    }
}

/* Fix for iOS safari viewport height issue */
@supports (-webkit-touch-callout: none) {
    .main-container {
        min-height: -webkit-fill-available;
    }
}