/* Login Pages Styles - Base 1024x1366px (iPad Pro) */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Fix for Tailwind v4 image sizing issues */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent image overflow */
.logo-container img,
.login-card img,
.google-btn img {
    max-width: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Animation preparation - Initially hidden elements */
.title-section,
.login-card,
.register-section {
    opacity: 0;
}

.login-form > * {
    opacity: 0;
}

/* Logo container - simple preparation without transform conflicts */
.logo-container {
    opacity: 0;
}

/* Smooth transitions for interactive elements */
.google-btn,
.submit-btn,
.form-input {
    transition: all 0.2s ease;
    will-change: transform;
}

.google-btn:hover,
.submit-btn:hover {
    transform: translateY(-1px);
}

.form-input:focus {
    transform: scale(1.02);
}

/* Enhanced button animations */
.google-btn:active,
.submit-btn:active {
    transform: scale(0.98);
}

/* Improved logo container for animations */
.logo-container {
    will-change: transform;
}

/* Enhanced card animations */
.login-card {
    will-change: transform, opacity;
}

/* Main Container */
.login-container {
    background: linear-gradient(180deg, #2D5A3A 65%, #ffffff 35%);
    position: relative;
    min-height: 100vh;
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.status-left {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.signal-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.signal-bars span {
    width: 3px;
    background: white;
    border-radius: 1px;
}

.signal-bars span:nth-child(1) { height: 4px; }
.signal-bars span:nth-child(2) { height: 6px; }
.signal-bars span:nth-child(3) { height: 8px; }
.signal-bars span:nth-child(4) { height: 10px; }

.wifi-icon, .battery-icon {
    font-size: 14px;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 100px 32px 40px;
    width: 100%;
    position: relative;
}

/* Logo Section */
.logo-container {
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out;
    max-width: 120px;
    max-height: fit-content;
}

.logo-image {
    width: 120px !important;
    height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
    object-fit: contain;
    filter: brightness(1.1);
    display: block;
}

/* Title Section */
.title-section {
    text-align: center;
    margin-bottom: 36px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.main-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* Login Card */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Google Button */
.google-btn {
    width: 100%;
    background: white;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.google-btn:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.divider-line {
    flex: 1;
    border: none;
    height: 1px;
    background: #E5E7EB;
}

.divider-text {
    padding: 0 16px;
    font-size: 14px;
    color: #9CA3AF;
    font-weight: 400;
}

/* Form Groups */
.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    background: #F9FAFB;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 400;
    color: #0c101b;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: #204E34;
    background: white;
    box-shadow: 0 0 0 3px rgba(32, 78, 52, 0.1);
}

.form-input::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    gap: 8px;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-circle {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid #E5E7EB;
    border-radius: 50%;
    background: #fff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-circle::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #204E34;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.checkbox-input:checked + .checkbox-circle {
    border-color: #204E34;
    background: #fff;
}

.checkbox-input:checked + .checkbox-circle::after {
    transform: scale(1);
}

.checkbox-circle:hover {
    border-color: #204E34;
    box-shadow: 0 0 0 3px rgba(32, 78, 52, 0.1);
}

.checkbox-text {
    font-size: 14px;
    color: #374151;
    font-weight: 400;
}

.forgot-link {
    font-size: 14px;
    color: #3B82F6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #2563EB;
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #204E34 0%, #2A5F3F 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(32, 78, 52, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #183C28 0%, #234A35 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(32, 78, 52, 0.4);
}

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

/* Register Section */
.register-section {
    margin-top: 32px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.register-text {
    font-size: 15px;
    color: rgb(9, 8, 16);
    font-weight: 400;
}

.register-link {
    color: #60A5FA;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.register-link:hover {
    color: #93C5FD;
    text-decoration: underline;
}

/* Mobile Bottom Indicator */
.mobile-bottom-indicator {
    position: fixed;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    z-index: 1000;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */

/* Large screens (Desktop) - Above 1024px */
@media (min-width: 1025px) {
    .login-container {
        max-width: 1024px;
        margin: 0 auto;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
    }
    
    .main-content {
        padding: 100px 48px 40px;
    }
    
    .logo-container {
        margin-bottom: 32px;
    }
    
    .title-section {
        margin-bottom: 36px;
    }
    
    .logo-circle {
        width: 140px;
        height: 140px;
    }
    
    .logo-image {
        width: 120px;
        height: 120px;
    }
    
    .main-title {
        font-size: 36px;
    }
    
    .login-card {
        padding: 40px;
        max-width: 440px;
    }
    
    .mobile-status-bar {
        display: none;
    }
    
    .mobile-bottom-indicator {
        display: none;
    }
}

/* Large Tablets (iPad Pro 12.9") - 1024x1366px base */
@media (min-width: 1024px) and (max-width: 1024px) {
    .login-container {
        width: 100%;
        max-width: 100%;
    }
    
    .main-content {
        padding: 100px 48px 40px;
    }
    
    .logo-container {
        margin-bottom: 32px;
    }
    
    .title-section {
        margin-bottom: 36px;
    }
    
    .logo-circle {
        width: 140px;
        height: 140px;
    }
    
    .logo-image {
        width: 100px;
        height: 100px;
    }
    
    .main-title {
        font-size: 36px;
    }
    
    .login-card {
        padding: 40px;
        max-width: 440px;
    }
    
    .mobile-status-bar {
        display: none;
    }
    
    .mobile-bottom-indicator {
        display: none;
    }
}

/* Standard Tablets (iPad) - 768px to 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    .login-container {
        width: 100%;
        max-width: 100%;
    }
    
    .main-content {
        padding: 80px 40px 40px;
    }
    
    .logo-container {
        margin-bottom: 30px;
    }
    
    .title-section {
        margin-bottom: 34px;
    }
    
    .logo-circle {
        width: 140px;
        height: 140px;
    }
    
    .logo-image {
        width: 100px;
        height: 100px;
    }
    
    .main-title {
        font-size: 34px;
    }
    
    .login-card {
        padding: 36px;
        max-width: 420px;
    }
}

/* Large Mobile (iPhone Pro Max) - 414px to 767px */
@media (min-width: 414px) and (max-width: 767px) {
    .login-container {
        width: 100%;
        max-width: 100%;
    }
    
    .main-content {
        padding: 80px 28px 80px;
    }
    
    .logo-container {
        margin-bottom: 28px;
    }
    
    .title-section {
        margin-bottom: 32px;
    }
    
    .logo-circle {
        width: 140px;
        height: 140px;
    }
    
    .logo-image {
        width: 40.07px !important;
        height: 40px !important;
        max-width: 40.07px !important;
        max-height: 40px !important;
    }
    
    .main-title {
        font-size: 30px;
    }
    
    .login-card {
        padding: 28px;
        border-radius: 20px;
        max-width: 380px;
    }
    
    .form-input {
        padding: 14px 18px;
        font-size: 16px;
    }
    
    .google-btn {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 14px 18px;
    }
}

/* Standard Mobile (iPhone) - 375px to 413px */
@media (min-width: 375px) and (max-width: 413px) {
    .login-container {
        width: 100%;
        max-width: 100%;
    }
    
    .main-content {
        padding: 80px 24px 100px;
    }
    
    .logo-container {
        margin-bottom: 24px;
    }
    
    .title-section {
        margin-bottom: 28px;
    }
    
    .logo-circle {
        width: 100px;
        height: 100px;
    }
    
    .logo-image {
        width: 40.07px !important;
        height: 40px !important;
        max-width: 40.07px !important;
        max-height: 40px !important;
    }
    
    .main-title {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 15px;
    }
    
    .login-card {
        padding: 24px;
        border-radius: 20px;
        max-width: 350px;
    }
    
    .form-input {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .google-btn {
        padding: 11px 16px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .register-section {
        margin-top: 32px;
    }
}

/* Small Mobile (iPhone SE) - 320px to 374px */
@media (max-width: 374px) {
    .login-container {
        width: 100%;
        max-width: 100%;
    }
    
    .main-content {
        padding: 80px 20px 80px;
    }
    
    .logo-container {
        margin-bottom: 20px;
    }
    
    .title-section {
        margin-bottom: 24px;
    }
    
    .logo-circle {
        width: 100px;
        height: 100px;
    }
    
    .logo-image {
        width: 40.07px !important;
        height: 40px !important;
        max-width: 40.07px !important;
        max-height: 40px !important;
    }
    
    .main-title {
        font-size: 26px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .login-card {
        padding: 20px;
        border-radius: 18px;
        max-width: 300px;
    }
    
    .form-input {
        padding: 11px 14px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .google-btn {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .submit-btn {
        padding: 11px 14px;
        font-size: 15px;
        border-radius: 10px;
    }
    
    .register-section {
        margin-top: 30px;
    }
    
    .register-text {
        font-size: 14px;
    }
}

/* Landscape Mode Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .main-content {
        padding: 20px 32px;
        justify-content: flex-start;
    }
    
    .logo-container {
        margin-bottom: 20px;
    }
    
    .title-section {
        margin-bottom: 20px;
    }
    
    .logo-circle {
        width: 80px;
        height: 80px;
    }
    
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .login-card {
        padding: 20px;
    }
    
    .register-section {
        margin-top: 20px;
    }
    
    .mobile-status-bar {
        height: 32px;
        font-size: 15px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .login-card {
        background: rgba(255, 255, 255, 0.98);
    }
    
    .form-input {
        background: #F9FAFB;
    }
    
    .form-input:focus {
        background: white;
    }
}