* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    color: #212529;
    line-height: 1.6;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 500;
    color: #0F4C4C;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing:-1px;
    text-decoration: none;
}

.logo-symbol {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.login-section {
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-container {
    max-width: 500px;
	min-width:500px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.login-title {
    text-align: center;
    margin-bottom: 40px;
}

.login-title h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.login-title p {
    color: #6c757d;
    font-size: 16px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #167064;
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(22, 112, 100, 0.1);
}

.form-control.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    margin: 0;
}

.remember-me label {
    font-size: 14px;
    color: #495057;
    margin: 0;
    font-weight: normal;
}

.forgot-password {
    color: #167064;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #167064 0%, #0F4C4C 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 112, 100, 0.3);
}

.btn-login:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.social-login {
    margin: 30px 0;
    text-align: center;
}

.social-login-divider {
    position: relative;
    margin: 30px 0;
    text-align: center;
}

.social-login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.social-login-divider span {
    background: white;
    padding: 0 20px;
    color: #6c757d;
    font-size: 14px;
}

.social-buttons {
    display: flex;
    gap: 15px;
}

.btn-social {
    flex: 1;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

.btn-social:hover {
    border-color: #167064;
    transform: translateY(-2px);
}

.btn-social.google {
    color: #4285f4;
}

.btn-social.kakao {
    color: #fee500;
    background: #fee500;
    border-color: #fee500;
}

.register-link {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.register-link a {
    color: #167064;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #167064;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

@media (max-width: 768px) {
    .login-container {
        margin: 0 20px;
        padding: 30px;
		min-width:300px;
    }
    
    .login-title h1 {
        font-size: 28px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
}